<%= javascript_include_tag 'tasks.js',  'dragdrop.js', 'jscalendar/calendar.js' , 'jscalendar/calendar-setup.js', 'jscalendar/lang/calendar-en.js' %>
<style type="text/css">@import url(/javascripts/jscalendar/calendar-win2k-1.css);</style>

<!-- Tasks  -->
<h2>Tasks</h2>
Project: 
<select name="" onchange="select_project(this.value)">
<option value="0">All</option>
<% session['user'].projects(false).sort_by {|p| [p.name]}.each {|p| -%>
<option value="<%=p.id%>"<%if session['selectedproject'].to_i==p.id then%> selected<%end%>><%= p.name %></option>
<%   } -%>
</select>
Resp: 
<select name="" onchange="select_resp(this.value)">
<option value="0">All</option>
<% @resp.each {|u| -%>
<option id="resp<%=u.id%>" value="<%=u.id%>"<%if session['selectedresp'].to_i==u.id then%> selected<%end%>><%= u.name %></option>
<% } -%>
</select>
<a class="btnlnk" href="/task/export">Export</a>
<a class="btnlnk" href="/task/sort_by_priority">Sort by priority</a><br />
<br />
<div id="taskcontent">
<%= render(:partial => "taskcontent") %>
</div>
